/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.web.entity;

import com.baomidou.mybatisplus.annotation.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * classify
 * @author: ZhouZhou
 * @date 2021-06-11 10:29:57
 */
@Getter
@Setter
@TableName("classify")
@Data
public class ClassifyEntity{

    private static final long serialVersionUID = 1L;

    /** 数据主键 */
	@TableId(type = IdType.AUTO)
    private Integer pkId;

    /** 分类ID */
    @NotNull(message = "参数值不能为空")
    private Integer id;

    /** 分类父级ID */
    @NotNull(message = "参数值不能为空")
    private Integer parentId;

    /** 分类封面地址 */
    @NotBlank(message = "参数值不能为空")
    private String coverImage;

    /** 分类名称 */
    @NotBlank(message = "参数值不能为空")
    private String name;

    /** 分类排序 */
    @NotNull(message = "参数值不能为空")
    private Integer sort;

    /** 分类层级 */
    @NotNull(message = "参数值不能为空")
    private Integer level;

}
